{include file="common/header" title="角色管理" css="admin-role" /}
<div class="container-fluid add-role-head" style="display: block">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">角色管理</h3>
        </div>
        <div class="panel-body">
            <div class="row">
                <label class="col-sm-2 control-label" style="text-align: right; margin-top:5px">角色名字：</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" name="name" id="search_name"/>
                </div>
                <div class="col-sm-2 col-sm-offset-4">
                    <button class="btn btn-primary" id="search_btn">查询</button>
                </div>
            </div>
            <table id="role" style="word-break: break-word"></table>
            <div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
                <button id="btn_edit" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true" ></span>修改
                </button>
                <button id="btn_delete" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
                </button>
                <button id="add-role" type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
                </button>
            </div>
        </div>
        <div class="panel-footer">Copyright © 1996-2019 lauwen.</div>
    </div>
</div>
<div id="role-form-content" style="display: none">
    <div class="container-fluid add-role-head">
        <div class="row">
            <div class="col-md-12">
                <div class="input-group">
                    <span class="input-group-addon">角色名称：</span>
                    <input type="text" name="name" id="name" class="form-control">
                </div>
            </div>
        </div>
        <input type="hidden" value="false" name="edit" id="edit"/>
        <input type="hidden" value="" name="submit_type" id="id"/>
        <div class="row">
            <div class="col-md-12" id="role-list">

            </div>
        </div>
        <div class="row add-role-head">
            <div class="col-md-8">
                <p class="form-item-input-box">
                    <button type="button" id="role-submit" class="btn btn-success add-btn">立&ensp;即&ensp;保&ensp;存</button>
                </p>
            </div>
        </div>
    </div>

</div>

{include file="common/footer" js="admin-role" /}